* configure.in: Extract UNEXEC from the system configuration
authorJim Blandy <jimb@redhat.com>
Fri, 28 May 1993 04:33:12 +0000 (04:33 +0000)
committerJim Blandy <jimb@redhat.com>
Fri, 28 May 1993 04:33:12 +0000 (04:33 +0000)
files, compute the name of the source file corresponding to the
object file, and #define it as UNEXEC_SRC in config.h.

configure1.in

index 2c3eb3d86ebfd05236d73b70073261d4ff68e82c..84f8846d56878b1db1a482498be679e7b31105f1 100755 (executable)
@@ -1013,6 +1013,13 @@ echo '
 #endif
 @configure@ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
 @configure@ c_switch_system=C_SWITCH_SYSTEM
+
+#ifdef UNEXEC
+@configure@ unexec=UNEXEC
+#else
+@configure@ unexec=unexec.o
+#endif
+
 #ifdef SYSTEM_MALLOC
 @configure@ system_malloc=yes
 #else
@@ -1027,6 +1034,8 @@ eval `${foo} ${tempcname} \
        | sed -e 's/^@configure@ \([^=]*=\)\(.*\)$/\1"\2"/'`
 rm ${tempcname}
 
+### Compute the unexec source name from the object name.
+UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
 
 # Do the opsystem or machine files prohibit the use of the GNU malloc?
 # Assume not, until told otherwise.
@@ -1073,6 +1082,7 @@ AC_DEFINE_UNQUOTED(config_machfile,  "\"${machfile}\"")
 AC_DEFINE_UNQUOTED(config_opsysfile, "\"${opsysfile}\"")
 AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE, ${LD_SWITCH_X_SITE})
 AC_DEFINE_UNQUOTED(C_SWITCH_X_SITE,  ${C_SWITCH_X_SITE})
+AC_DEFINE_UNQUOTED(UNEXEC_SRC,       ${UNEXEC_SRC})
 
 [
 if [ "${HAVE_X_WINDOWS}" = "yes" ] ; then